<html>
    <head>
        <title>前台首页</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script type="text/javascript" src="./public/js/jquery-3.1.1.min.js"></script>
    </head>
    <body>
        <div style="width: 100%; height: 30px;text-align: center;">
            <a href="index.php?m=index&c=user&a=index">登录</a>&nbsp;&nbsp;<a href="index.php?m=index&c=user&a=register">注册</a>&nbsp;&nbsp;<a href="index.php?m=index&c=article&a=add">发帖</a>&nbsp;&nbsp;<a href="index.php?m=admin&c=admin&a=login">后台管理</a>
        </div>
        <div id="div">
         {foreach from=$arr key=$k item=$v}
         <p>{$v["title"]}<a href="index.php?m=index&c=article&a=selectArticle&id={$v['id']}">详情</a></p>
            {/foreach}
        </div>
    </body> 
</html>